import requests


# 封装IHRM login方法
class IHRMLoginAPI():
    @classmethod
    def login(cls, json_data):
        url = "http://ihrm2-test.itheima.net/api/sys/login"
        res = requests.post(url=url,
                            headers={"Content-Type": "application/json"},
                            json=json_data
                            )
        return res